/**
 * @Auto generation code
 * 小浦支付对接接口
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * 登陆接口 - GET
 */
export const spdbLogin = async ({// query params
		phone ,   // 手机号  
		open_userid ,   // 用户ID  
		sign ,   // 签名  
		continue   // 跳转目标  
	
}, loading) => {
	return await request.get('/spdb/login', {
		 phone,  open_userid,  sign,  continue, 
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 退款回调 - POST
 */
export const notify = async ({// query params
		app_id ,   // APP_ID  
		out_order_number ,   // 外部订单号，我们系统中的订单号  
		refund_price ,   // 退款金额  
		pay_status ,   // 支付状态  
		sign   // 签名  
	
}, loading) => {
	return await request.post('/spdb/notify', {
		 app_id,  out_order_number,  refund_price,  pay_status,  sign, 
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 获取订单详情 - POST
 */
export const getOrderDetail = async ({// query params
		app_id ,   // APP_ID  
		out_order_number ,   // 外部订单号，我们系统的订单号  
		order_number ,   // 内部订单号，小浦系统内的订单号  
		sign   // 签名  
	
}, loading) => {
	return await request.post('/spdb/orders', {
		 app_id,  out_order_number,  order_number,  sign, 
	}, {
		
	}, loading)
}

